# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=sxmobar
pkgver=1.0.4
pkgrel=0
pkgdesc="A status bar component manager"
url="https://git.sr.ht/~stacyharper/sxmobar/"
arch="x86_64 aarch64 riscv64" # hare
license="AGPL-3.0-or-later"
makedepends="hare hare-ev scdoc"
subpackages="$pkgname-doc"
source="$pkgname-v$pkgver.tar.gz::https://git.sr.ht/~stacyharper/sxmobar/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	# Don't use user's global Hare cache
	export XDG_CACHE_HOME="$srcdir"/hare-cache
	mkdir -p "$XDG_CACHE_HOME"

	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
1e755d483f87f40977f508f8f1d4ddffdd92457486e77e0f7a171c8eb7295babdb43cca056799c37085380f4a5a38bb94e331d0ae606ac2cba225426bf9c1e30  sxmobar-v1.0.4.tar.gz
"
